import { http } from "@/utils/http";
import { baseUrlApi } from './utils'

// // 测试接口
// export const getDevice = (data) => {
//   return http.request('get', baseUrlApi('/device/info'), { data });
// };

// // 测试接口 params传参
// export const getTest = (params) => {
//   return http.request("get", baseUrlApi('/menu/role-menusandchecked'), { params });
// };

// 获取关系图 url拼接传参
export const getLfData = (params) => {
  return http.request("get", baseUrlApi('/map/get/') + params);
};

// 添加关系图 url拼接传参
export const addLfData = (data) => {
  return http.request("post", baseUrlApi('/map/add'),{ data });
};

// 获取已适配机器信息
export const codeList = (data) => {
  return http.get(baseUrlApi('/code/list'), { data });
};
